﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;

//JIFEN ADDED FOR STATISTICS

public partial class statistics_TransactionStatistics : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        ArrayList topTenYear = new ArrayList();
        String currentYear = DateTime.Now.ToString("yyyy");

        for (int i = 0; i < 10;i++ )
        {
            int year = int.Parse(currentYear) - i;
            topTenYear.Add(year);
        }


        this.RepeaterTopTenYears.DataSource = topTenYear;
        this.RepeaterTopTenYears.DataBind();



    }
    protected void RepeaterTopTenYears_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
        String year = e.CommandArgument as String;
        this.selectedYear.Value = year;
        this.RepeaterTopTenYears.DataBind();

    }



}